﻿<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>北京 - 挑选二手车 别忘了路试 - 锐车</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta content="锐车" name="keywords" />
	<meta content="锐车" name="description" />
    <link rel="stylesheet" href="/static/layui/css/layui.css">
	<link rel="stylesheet" href="/static/home/Css/swiper.min.css">
	<link rel="stylesheet" type="text/css" href="/static/home/Css/style.css">
	<script type="text/javascript" src="/static/home/Scripts/jquery.js"></script>
	<script type="text/javascript" src="/static/layui/layui.js"></script>
	<script type="text/javascript" src="/static/home/Scripts/common.js"></script>
	<script type="text/javascript" src="/static/home/Scripts/swiper.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			//点击
			$.get("/index.php?m=ajax&ajax=1&newshit=1&id=238", function(data){});
		})
	</script>
	</head>
	<body style="background:#f9f9f9">
	<script language="JavaScript">
$(function(){
	$(".nav_all_types").hover(function(){
		$(".show_all_types .layui-icon").html("&#xe619;");
		$(".all_types_box").show();
	},function(){
		$(".show_all_types .layui-icon").html("&#xe61a;");
		$(".all_types_box").hide();
	});

	//城市选择
	$(".citymark a").click(function() {
		var mark = $(this).attr("dataid");
		var citytop = $(".city-list").scrollTop()+$("#"+mark).position().top - 50;
		$(".city-list").animate({
			scrollTop: citytop
		}, {duration: 500, easing: "swing"});
		return false;
	});

	$(".selectcity").click(function(event) {
		if($(".citylist-box").is(":hidden")){
			$(this).addClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe619;");
			$(".citylist-box").removeClass("layui-hide");
		}
		else{
			$(this).removeClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe61a;");
			$(".citylist-box").addClass("layui-hide");
		}
		event.stopPropagation();//这句是必须
	});


	$(document).bind("click",function(e){
		var target  = $(e.target);
		if(target.closest(".citylist-box").length == 0){
			$('.selectcity').removeClass("whitebg");
			$(".selectcity .layui-icon").html("&#xe61a;");
			$(".citylist-box").addClass("layui-hide");
		}
		e.stopPropagation();
	});

	$(".changecity").click(function() {
		var city = $(this).attr("data");
		$.ajax({
			url: "/index.php?m=ajax&ajax=1&changecity=1",
			data:{city:city},
			type: "get",
			dataType: "json",
			success: function(data){
				if(data.status == 'y'){
					window.location.reload();
				}
			}
		});
	});
})
</script>
<!--头部-->
{include file="public/head"/}
	<div class="layui-container layui-breadcrumb-nav">
		<span class="layui-breadcrumb">
		  <a href="/">首页</a>
		  <a href="/news/">资讯</a>
		  <a><cite>{$topname[0]['name']}</cite></a>
		</span>
	</div>
	<div class="layui-container">
		<div class="news-box">
			<h3 class="news-title">{$all[0]['title']}</h3>
			<div class="news-addtime">{:date('Y-m-d H:i:s',$all[0]['time'])}</div>
			<div class="news-info"><p>{$all[0]['content']}</p>
				{foreach $img as $v}
				 <p><img src="{$v}" width="500px" height="500px"><br></p>
				{/foreach}
			</div>
		</div>
	</div>
	{include file="public/foot"/}